package com.gitee.fanx.rpc.dto;

import java.util.StringJoiner;

/**
 * 测试, 嵌套泛型
 *
 * @param <T>
 * @author 凡行
 */
public class TestGeneric<T> {
	/**
	 * 当前页码数（默认给1）
	 */
	private Integer index;
	private T result;

	public TestGeneric() {
	}

	public TestGeneric(Integer index) {
		this.index = index;
	}

	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public T getResult() {
		return result;
	}

	public void setResult(T result) {
		this.result = result;
	}

	@Override
	public String toString() {
		return new StringJoiner(", ", TestGeneric.class.getSimpleName() + "[", "]")
			.add("index=" + index)
			.add("result=" + result)
			.toString();
	}
}
